package com.qf.zyh.entity;

import jdk.internal.org.objectweb.asm.tree.analysis.Value;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

public class Emp implements Serializable {

  private int eno;
  private String ename;
  private String esex;
  private double salary;
  private String pwd;
  private int dno;
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private Date date;
  private String phone;

  public String getPhone() {
    return phone;
  }

  @Override
  public String toString() {
    return "Emp{" +
            "eno=" + eno +
            ", ename='" + ename + '\'' +
            ", esex='" + esex + '\'' +
            ", salary=" + salary +
            ", pwd='" + pwd + '\'' +
            ", dno=" + dno +
            ", date=" + date +
            ", phone='" + phone + '\'' +
            '}';
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public Date getDate() {
    return date;
  }

  public void setDate(Date date) {
    this.date = date;
  }

  public Emp() {
  }

  public Emp(String ename, String esex, double salary, String pwd, int dno, Date date, String phone) {
    this.ename = ename;
    this.esex = esex;
    this.salary = salary;
    this.pwd = pwd;
    this.dno = dno;
    this.date = date;
    this.phone = phone;
  }

  public int getEno() {
    return eno;
  }

  public void setEno(int eno) {
    this.eno = eno;
  }


  public String getEname() {
    return ename;
  }

  public void setEname(String ename) {
    this.ename = ename;
  }


  public String getEsex() {
    return esex;
  }

  public void setEsex(String esex) {
    this.esex = esex;
  }


  public double getSalary() {
    return salary;
  }

  public void setSalary(double salary) {
    this.salary = salary;
  }


  public String getPwd() {
    return pwd;
  }

  public void setPwd(String pwd) {
    this.pwd = pwd;
  }


  public int getDno() {
    return dno;
  }

  public void setDno(int dno) {
    this.dno = dno;
  }

  public Emp(int eno, String ename, String esex, double salary, String pwd, int dno, Date date, String phone) {
    this.eno = eno;
    this.ename = ename;
    this.esex = esex;
    this.salary = salary;
    this.pwd = pwd;
    this.dno = dno;
    this.date = date;
    this.phone = phone;
  }
}
